x86/cpuid: correct parameter types for cpuid_count()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Jan 2015 09:41:18 +0000 (10:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Jan 2015 09:41:18 +0000 (10:41 +0100)
About half of the cpuid space has the top bit of op set, and op it always
specified with unsigned integers.  There are no problematic uses in tree at
the moment.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/processor.h

index f98eaf521783e5219cbd8ecba8de448d4ee2003e..20eade6e567ffdfeb19a4a7e816a5f70b24a6e0b 100644 (file)
@@ -234,8 +234,8 @@ unsigned int apicid_to_socket(unsigned int);
 
 /* Some CPUID calls want 'count' to be placed in ecx */
 static inline void cpuid_count(
-    int op,
-    int count,
+    unsigned int op,
+    unsigned int count,
     unsigned int *eax,
     unsigned int *ebx,
     unsigned int *ecx,